package com.mall.order;

import com.mall.order.rocketmq.Consumer;
import com.mall.order.rocketmq.RobackConsumer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Configuration;

import javax.annotation.Resource;

@Configuration
@SpringBootApplication
public class OrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class, args);
        Consumer consumer = new Consumer();
        consumer.consumer();
        RobackConsumer robackConsumer = new RobackConsumer();
        robackConsumer.consumer();
    }

}
